/*
 * Project Beknyou
 * Copyright (c) 2010-2011 Saint Paul College, All Rights Reserved
 * Redistributions in source code form must reproduce the above
 * Copyright and this condition.
 * The contents of this file are subject to the GNU General Public
 * License, Version 2 (the "License"); you may not use this file
 * except in compliance with the License. A copy of the License is
 * available at http://www.opensource.org/licenses/gpl-license.php.
 */
package com.benkyou.common;

/**
 *
 * @author Austin Allman
 */
public class Avatar {
    private static final String[] modelLocation = {
        "Models/avatars/businessman/My_Avatar__1.j3o",
        "Models/avatars/Austin/Austin.j3o",
       "Models/avatars/businesswoman/My_Avatar__2.j3o"
    };
    private String[] iconLocation = {
        "Img/businessman.jpg",
        "Img/austin.gif"
    };
    private int id;
    public static int numOfAvatars = modelLocation.length;
    public Avatar(int id){
        this.id = id;
    }
    public String[] getIconLocations(){
        return iconLocation;
    }
    public int getIdByIconLocation(String iconLocation){
        int idFound = -1;
        for(int i = 0; i < this.iconLocation.length; i++){
            if(this.iconLocation[i].equals(iconLocation)){
                idFound = i;
            }
        }
        return idFound;
    }
    public String getModelLocation(){
        return modelLocation[id];
    }
    public String getIconLocation(){
        return iconLocation[id];
    }
    public int getAvatarId(){
        return id;
    }
}
